/**
 * 
 */
package br.com.skynix.tcmc.controller.financeiro.transacoes;

import javax.annotation.Resource;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import org.springframework.stereotype.Controller;

import br.com.skynix.tcmc.base.managedbeans.AbstractCRUDManagedBean;
import br.com.skynix.tcmc.base.spring.IServiceAuditavel;
import br.com.skynix.tcmc.model.financeiro.Transacao;
import br.com.skynix.tcmc.service.financeiro.transacoes.TransacaoService;

/**
 * @author davi
 * 
 */
@ManagedBean
@RequestScoped
@Controller
public class TransacaoMB extends AbstractCRUDManagedBean<Transacao> {
	@Resource
	private TransacaoService transacaoService;

	public TransacaoMB() {
		setModeloPesquisa(new Transacao());
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * br.com.skynix.tcmc.base.managedbeans.AbstractCRUDManagedBean#getService()
	 */
	@Override
	protected IServiceAuditavel<Transacao> getService() {
		return transacaoService;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see br.com.skynix.tcmc.base.managedbeans.AbstractCRUDManagedBean#
	 * getPathParaModuloCRUD()
	 */
	@Override
	protected String getPathParaModuloCRUD() {
		return formatPath("financeiro/transferencias/transferencia_crud_view");
	}
}
